<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String ctx = null;
	if(request.getServerPort()==80){
		ctx = request.getScheme()+"://"+request.getServerName()+request.getContextPath();
	}else{
		ctx = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath();
	}
	pageContext.setAttribute("ctx", ctx);
%>
<!DOCTYPE HTML>
<html>
  <head>
    <title>My JSP 'wait.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<style>
		.box{width:360px;height:360px;background:#333;
			position:fixed;
			top:50%;
			left:50%;
			margin-top:-180px;
			margin-left:-180px;
			color:#fff;
			font-family:"微软雅黑";
			padding:20px;
			z-index: 1
		}
		.paybtn{background:red;padding:10px;text-align: center;}
		.overflow{position:fixed;background:#000;left:0;top:0;opacity:0.5;width:100%;height:100%;}
	</style>
  </head>
  <body>
  	<div class="box">
  		<p>支付过程中，请不要关闭当前页面，支付成功会自动关闭当前页面...</p>
  		<p>如果支付出现问题，请联系客服。<a href="goBuy()" style="color:green">继续支付</a></p>
  		<p>支付成功，请点击下面的确定</p>
  		<p class="paybtn" id="tip">支付订单保存中中......<p>
  	</div>
  	<div class="overflow"></div>
	<!-- <form action="http://localhost:8080/tzpay/paySuccess.html" method="post" id="payForm"></form> -->
	<img src="http://localhsot:8080/tzpay/ali/paySuccess.html" style="display: none"/>
<!--   	<script type="text/javascript" src="http://localhost/tzpay/paySuccess.html"></script> -->
	<%-- <script type="text/javascript" src="${ctx}/js/jquery-1.11.1.min.js"></script>
	<script type="text/javascript">
		var timer = null;
		function paySucccess(){
			clearTimeout(timer);
			timer = setTimeout(function(){
				$.get("${ctx}/ali/paySuccess.html",function(data){
					if(data=="success"){
						$("#tip").html("支付订单保存成功..点击前往学习").css("background","green");
						setTimeout(function(){
							window.location.href = "http://localhost:8080/";
						},1000);
					}
				});
			},200);
		};
		
		paySucccess();
	</script> --%>
  </body>
</html>
